package com.sinosoft.perfect.system._authorization.dao;

import java.sql.SQLException;
import java.util.List;

import com.sinosoft.perfect.system._authorization.vo.RoleResourceRelationAuthorize;

public interface IRoleResourceAuthorizeDao {

	public void insertByRoleResourceRelationAuthorize
		(RoleResourceRelationAuthorize roleResourceRelationAuthorize) throws SQLException;
	
	public RoleResourceRelationAuthorize queryTRoleResourceRelationByResourceAndRole
		(RoleResourceRelationAuthorize roleResourceRelationAuthorize) throws SQLException;
	
	public int updatePowerOfRoleResource
		(RoleResourceRelationAuthorize roleResourceRelationAuthorize) throws SQLException;
	
	public int deletePowerOfRoleResource
		(RoleResourceRelationAuthorize roleResourceRelationAuthorize) throws SQLException;
	
	public List<String> queryResourceIdsOfRole(String roleSystemId) throws SQLException;	
	
	public void operateResourceRoleAuthorize
		(List<RoleResourceRelationAuthorize> deleteList,List<RoleResourceRelationAuthorize> insertList)
			throws SQLException;
	
}
